<div data-dojo-type="dijit/form/Form" id="kursantForm" data-dojo-id="kursantForm" encType="multipart/form-data" action=
<#if kursantId != 0 >
"kursant!save.action"
<#else>
"kursant!saveNew.action"
</#if>
 method="post">
    <table cellspacing="10">
        <tr>
            <td>
                <label for="imie">Imie:</label>
            </td>
            <td>
                <input type="text" id="imie" name="form.imie" value="${form.imie}" required="true" data-dojo-type="dijit/form/ValidationTextBox"/>
            </td>
         </tr>
        <tr>
            <td>
                <label for="nazwisko">Nazwisko:</label>
            </td>
            <td>
                <input type="text" id="nazwisko" name="form.nazwisko" value="${form.nazwisko}" required="true" data-dojo-type="dijit/form/ValidationTextBox"/>
            </td>
         </tr>
        <tr>
            <td>
                <label for="login">Login:</label>
            </td>
            <td>
                <input type="text" id="login" name="form.login" value="${form.login}" required="true" data-dojo-type="dijit/form/ValidationTextBox"/>
            </td>
         </tr>
        <tr>
            <td>
                <label for="haslo">Hasło:</label>
            </td>
            <td>
                <input type="text" id="haslo" name="form.haslo" value="${form.haslo}" required="true" data-dojo-type="dijit/form/ValidationTextBox"/>
            </td>
         </tr>
        <tr>
            <td>
                <label for="imie2">Drugie imie:</label>
            </td>
            <td>
                <input type="text" id="imie2" name="form.imie2" value="${form.imie2}" required="true" data-dojo-type="dijit/form/ValidationTextBox"/>
            </td>
         </tr>
        <tr>
            <td>
                <label for="email">Email:</label>
            </td>
            <td>
                <input type="text" id="email" name="form.email" value="${form.email}" required="true" data-dojo-type="dijit/form/ValidationTextBox"/>
            </td>
         </tr>
        <tr>
            <td>
                <label for="dataUrodzin">Data urodzin:</label>
            </td>
            <td>
                <input type="text" id="dataUrodzin" name="form.dataUrodzin" value="${form.dataUrodzin?date}" required="true" data-dojo-type="dijit/form/DateTextBox"/>
            </td>
         </tr>
        <tr>
            <td>
                <label for="pesel">Pesel:</label>
            </td>
            <td>
                <input type="text" id="pesel" name="form.pesel" value="${form.pesel}" required="true" data-dojo-type="dijit/form/ValidationTextBox"/>
            </td>
         </tr>
        <tr>
            <td>
                <label for="telefon">Telefon:</label>
            </td>
            <td>
                <input type="text" id="telefon" name="form.telefon" value="${form.telefon}" required="true" data-dojo-type="dijit/form/ValidationTextBox"/>
            </td>
         </tr>
        <tr>
             <td>
                <label for="telefon">Kategoria:</label>
            </td>
            <td>
				<div data-dojo-type="dojo/store/Memory" data-dojo-id="kategoriaStore" data-dojo-props='data:[ {"kategoria": "A"}, {"kategoria": "B"} ]'></div>
				<input data-dojo-type="dijit/form/ComboBox"
					    data-dojo-props="store:kategoriaStore, searchAttr:'kategoria'"
					    name="form.kategoria"
					    id="comboKategoria"
					    labelAttr="kategoria",
				    value="Wybierz kategorię" />
				</div>
            </td>
         </tr>
        <tr>
            <td>
                <label for="Uwagi">Uwagi:</label>
            </td>
            <td>
                <input type="text" id="uwagi" name="form.uwagi" value="${form.uwagi}" required="true" data-dojo-type="dijit/form/ValidationTextBox"/>
            </td>
         </tr>
    </table>
</div>